﻿

#region Imports

using System;
using System.Net.Sockets;

#endregion

namespace MammothMicro.SilverSocket.Server
{
    /// <summary>
    /// Message client
    /// </summary>
    public class Client
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Client"/> class.
        /// </summary>
        /// <param name="tcpClient">
        /// </param>
        public Client(TcpClient tcpClient)
        {
            this.TcpClient = tcpClient;
            this.Id = Guid.NewGuid();
        }

        /// <summary>
        /// Prevents a default instance of the <see cref="Client"/> class from being created.
        /// </summary>
        private Client()
        {
        }

        /// <summary>
        /// Gets client unique identifier
        /// </summary>
        public Guid Id{get;private set;}

        /// <summary>
        /// Gets connection object
        /// </summary>
        public TcpClient TcpClient{get;private set;}
    }
}